// import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'
import orderExport from "./modules/orderExport";
import order from "./modules/order";
import goods from "./modules/goods";
import gift from "./modules/gift";
import brand from "./modules/brand";
import user from "./modules/user";
import coupon from "./modules/coupon";
import channel from "./modules/channel";
import activity from "./modules/activity";
import getters from './getters'
import video from './modules/video'
import customer from './modules/customer'
import record from './modules/record'
import activityCustomer from './modules/activityCustomer'
import commissionList from './modules/commissionList'

// Vue.use(Vuex)

const state = {
    // 记录当前活动的值
    activityListStatus: '',
    // 记录商品列表的页数
    goodsPage: 1
}

export default new Vuex.Store({
    modules: {
        order,
        goods,
        gift,
        brand,
        user,
        coupon,
        channel,
        activity,
        video,
        customer,
        activityCustomer,
        record,
        orderExport,
        commissionList
    },
    state,
    actions,
    mutations,
    getters
})
